package top.lingkang.fas;

import cn.hutool.core.io.FileUtil;

import java.util.ArrayList;
import java.util.List;

/**
 * @author lingkang
 * created by 2025/7/20 19:20
 */
public class IconOut {
    public static void main(String[] args) {
        List<String> list = FileUtil.readUtf8Lines("C:\\Users\\Administrator\\Desktop\\project\\java\\fast-admin-solon\\fast-admin\\src\\main\\resources\\static\\page\\view\\system\\menu\\icon.html");
        List<String> html=new ArrayList<>();;
        for (String str : list) {
            if (str.contains("layui-icon ")) {
                html.add(str);
            }
        }
        int i=0;
        StringBuilder sb=new StringBuilder();
        sb.append("<div class=\"flex-column\">").append("\n");
        for (String str : html) {
            if (i==0) {
                sb.append("<div class=\"flex-row\">").append("\n");
            }
            sb.append(str).append("\n");
            i++;
            if (i==15){
                sb.append("</div>").append("\n");
                i=0;
            }

        }
        sb.append("</div>");
        sb.append("</div>");
        System.out.println(sb.toString());
    }
}
